package net.yla.smartbus.module.ba.right.menu.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import lombok.Data;
import net.yla.smartbus.core.annotation.PojoCastToJson;
import net.yla.smartbus.core.validation.DtoName;
import net.yla.smartbus.core.validation.GetDtoName;

/**
 * @Date: 2020-08-19 17:16
 * @Author: Being Nobody
 * @Version: 1.0
 */
@Data
@GetDtoName
public class MenusDO implements Serializable {
    @PojoCastToJson("id")
    @DtoName("id")
    private Integer menuId;
    @PojoCastToJson("parentId")
    private Integer parentId;

    private Integer level;

    private byte[] parents;

    private byte[] children;
    @PojoCastToJson("name")
    @DtoName("name")
    private String name;
    @PojoCastToJson("qualifiedName")
    @DtoName("qualifiedName")
    private String qualifiedName;
    @PojoCastToJson("html")
    @DtoName("html")
    private String innerHtml;
    @PojoCastToJson("href")
    @DtoName("href")
    private String href;
    @PojoCastToJson("title")
    @DtoName("title")
    private String title;
    @PojoCastToJson("target")
    @DtoName("target")
    private String target;

    private Integer menuType;
    @PojoCastToJson("value")
    @DtoName("value")
    private String value;

    private Integer rights;

    private Integer any;

    private Integer platformId;

    private Long uniqueId;

    private Integer version;

    @PojoCastToJson("hidden")
    private Integer hidden;

    private Integer disabled;

    private Integer sortOrder;
    @PojoCastToJson("creation")
    private LocalDateTime creationTime;
    @PojoCastToJson("modify")
    private LocalDateTime lastModifyTime;

    private Integer flags;

    private static final long serialVersionUID = 1L;
}